package com.ws.universal.tools.loading.button;

import android.animation.ValueAnimator;
import android.graphics.DashPathEffect;
import android.graphics.PathEffect;

import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;


public class LoadingButton$playFailedAnimation$$inlined$apply$lambda$4 implements ValueAnimator.AnimatorUpdateListener {
    // $FF: synthetic field
    final LoadingButton this$0;

    LoadingButton$playFailedAnimation$$inlined$apply$lambda$4(LoadingButton var1) {
        this.this$0 = var1;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        Intrinsics.checkExpressionValueIsNotNull(valueAnimator, "valueAnimator");
        Object var10000 = valueAnimator.getAnimatedValue();
        if (var10000 == null) {
            throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
        } else {
            float value = (Float) var10000;
            LoadingButton.access$getMPathEffectPaint2$p(this.this$0).setPathEffect((PathEffect) (new DashPathEffect(LoadingButton.access$getMFailedPathIntervals$p(this.this$0), LoadingButton.access$getMFailedPathLength$p(this.this$0) - LoadingButton.access$getMFailedPathLength$p(this.this$0) * value)));
            this.this$0.invalidate();
        }
    }
}
